<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
	function del(obj,id){
         	var parent=$(obj).parent().parent();
       		$.ajax({
       			url:"product.do?type=delete",//请求的url
             	  type:"POST",//请求方式
             	  dataType:"JSON",//服务器返回的数据类型
             	  data:{product_id:id},
       			  success:function(data){//返回成功的操作
			        parent.remove();	
             	  },
                  error:function(){//请求失败要执行的操作
                  	alert("error");
                  }
       		});
         }    
</script>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>个人中心</title>

		<link href="<%=basePath%>AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="<%=basePath%>AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">
		<link href="<%=basePath%>bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet" type="text/css">
		<link href="<%=basePath%>css/personal.css" rel="stylesheet" type="text/css">
		<link href="<%=basePath%>css/systyle.css" rel="stylesheet" type="text/css">

	</head>

	<body>
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
					<div class="am-container header">
						<ul class="message-l">
							<div class="topMessage">
								<div class="menu-hd">
									<a href="#" target="_top" class="h">亲，请对您的店铺进行操作</a>
								</div>
							</div>
						</ul>
						<ul class="message-r">
							<div class="topMessage home">
								<div class="menu-hd"><a href="<%=basePath%>spQuery" target="_top" class="h">商城首页</a></div>
							</div>
							<div class="topMessage my-shangcheng">
								<div class="menu-hd MyShangcheng"><a href="#" target="_top"><i class="am-icon-user am-icon-fw"></i>管理中心</a></div>
							</div>
							
						</ul>
						</div>

						<!--悬浮搜索框-->
						<div class="nav white">
				
					<div class="logoBig">
						<li><img src="<%=basePath%>images/hualilogo.png" /></li>
					</div>

					<div class="search-bar pr">
						<a name="index_none_header_sysc" href="#"></a>
						<form>
							<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="&nbsp;&nbsp;&nbsp;&nbsp;搜索您想要的鲜花" autocomplete="off">
							<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
						</form>
					</div>
				</div>
						

						<div class="clear"></div>
					</div>
				</div>
			</article>
		</header>
            <div class="nav-table">
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   <div class="nav-cont">
							<ul>
								<li class="index"><a href="#">首页</a></li>
                                <li class="qc"><a href="#">闪购</a></li>
                                <li class="qc"><a href="#">限时抢</a></li>
                                <li class="qc"><a href="#">团购</a></li>
                                <li class="qc last"><a href="#">大包装</a></li>
							</ul>
						</div>
			</div>
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">
					<div class="wrap-left">
						<div class="wrap-list">
							<div class="m-user">
								<!--个人信息 -->
								<div class="m-bg"></div>
								<div class="m-userinfo">
									<div class="m-baseinfo">
										<a href="information.jsp">
											<img src="<%=basePath%>/images/getAvatar.do.jpg">
										</a>
										<em class="s-name">(花里)<span class="vip1"></em>
										<div class="s-prestige am-btn am-round">
											</span>钻石店铺</div>
									</div>
									<div class="m-right">
										<div class="m-new">
											<a href="news.jsp"><i class="am-icon-bell-o"></i>消息</a>
										</div>

									</div>
								</div>

								<!--个人资产-->
								<div class="m-userproperty">
									<div class="s-bar">
										<i class="s-icon"></i>店铺资产
									</div>
									<p class="m-bonus">
										<a href="bonus.jsp">
											<i><img src="<%=basePath%>/images/bonus.png"/></i>
											<span class="m-title">红包</span>
											<em class="m-num">2</em>
										</a>
									</p>
									<p class="m-coupon">
										<a href="coupon.jsp">
											<i><img src="<%=basePath%>/images/coupon.png"/></i>
											<span class="m-title">优惠券</span>
											<em class="m-num">2</em>
										</a>
									</p>
									<p class="m-bill">
										<a href="bill.jsp">
											<i><img src="<%=basePath%>/images/wallet.png"/></i>
											<span class="m-title">钱包</span>
											<em class="m-num">2</em>
										</a>
									</p>
									<p class="m-big">
										<a href="#">
											<i><img src="<%=basePath%>/images/day-to.png"/></i>
											<span class="m-title">签到有礼</span>
										</a>
									</p>
									<p class="m-big">
										<a href="#">
											<i><img src="<%=basePath%>/images/72h.png"/></i>
											<span class="m-title">72小时发货</span>
										</a>
									</p>
								</div>
							</div>
							<div class="box-container-bottom"></div>

							<!--订单 -->
							<div class="m-order">
								<div class="s-bar">
									<i class="s-icon"></i>我的订单
									<a class="i-load-more-item-shadow" href="order.jsp">全部订单</a>
								</div>
								<ul>
									<li><a href="order.jsp"><i><img src="<%=basePath%>images/pay.png"/></i><span>待付款</span></a></li>
									<li><a href="order.jsp"><i><img src="<%=basePath%>images/send.png"/></i><span>待发货<em class="m-num">1</em></span></a></li>
									<li><a href="order.jsp"><i><img src="<%=basePath%>images/receive.png"/></i><span>待收货</span></a></li>
									<li><a href="order.jsp"><i><img src="<%=basePath%>images/comment.png"/></i><span>待评价<em class="m-num">3</em></span></a></li>
									<li><a href="change.jsp"><i><img src="<%=basePath%>images/refund.png"/></i><span>退换货</span></a></li>
								</ul>
							</div>
							<!--九宫格-->
							<div class="user-patternIcon">
								<div class="s-bar">
									<i class="s-icon"></i>我的常用
								</div>
								<ul>

									<a href="<%=basePath%>home/shopcart.jsp"><li class="am-u-sm-4"><i class="am-icon-shopping-basket am-icon-md"></i><img src="../images/iconbig.png"/><p>购物车</p></li></a>
									<a href="collection.jsp"><li class="am-u-sm-4"><i class="am-icon-heart am-icon-md"></i><img src="../images/iconsmall1.png"/><p>我的收藏</p></li></a>
									<a href="<%=basePath%>home/home.jsp"><li class="am-u-sm-4"><i class="am-icon-gift am-icon-md"></i><img src="../images/iconsmall0.png"/><p>为你推荐</p></li></a>
									<a href="comment.jsp"><li class="am-u-sm-4"><i class="am-icon-pencil am-icon-md"></i><img src="../images/iconsmall3.png"/><p>好评宝贝</p></li></a>
									<a href="foot.jsp"><li class="am-u-sm-4"><i class="am-icon-clock-o am-icon-md"></i><img src="../images/iconsmall2.png"/><p>我的足迹</p></li></a>                                                                        
								</ul>
							</div>
							<!--物流 -->
							

							<!--上新/下架 -->
							<div class="you-like">
								<div class="s-bar"><span style="font-size: 20px">我的店铺</span></br></br>
									<a class="am-badge am-badge-danger am-round" href="<%=basePath %>personal/person_add.jsp" style="color: white"><span style="font-size: 18px">新品上架</span></a>
								</div>
								<div class="s-content row">
									 <c:forEach  items="${prolist}" var="proinfo">
										<div class="col-md-4">
											<p>
												<c:if test="${empty proinfo.product_pic}">
													<img src="<%=basePath%>images/1.jpg" width="150" height="150">
												</c:if>
												<c:if test="${!empty proinfo.product_pic}">
													<img src="<%=basePath%>images/${proinfo.product_pic}" width="150" height="150">
												</c:if>
												<div align="center" style="margin-top: 5px;">
													<a href="<%=basePath%>personal/productpicupload.jsp?product_id=${proinfo.product_id}" class="uploade_btn" style="margin-left:-10em;">更换照片</a>
												</div>
											</p>
											<p>商品名称：<a>${proinfo.product_name }</a></p>
											<p>价格：<a>${proinfo.product_price }</a></p>	
											<p>商品描述：<a>${proinfo.product_describe}</a></p>
											<p>
												<a class="am-badge am-badge-danger am-round" href="<%=basePath%>personal/product_update.jsp?
												product_id=${proinfo.product_id}&product_name=${proinfo.product_name }&product_price=${proinfo.product_price }&product_describe=${proinfo.product_describe}">
													<span>修改</span>
												</a>
												<a class="am-badge am-badge-danger am-round" href="delete(${proinfo.product_id})" onclick="">
													<span>下架</span>
												</a>
											</p>
										</div>
									</c:forEach>
								</div>
							</div>
						</div>
					</div>
					<div class="wrap-right">

						<!-- 日历-->
						<div class="day-list">
							<div class="s-bar">
								<a class="i-history-trigger s-icon" href="#"></a>我的日历
								<a class="i-setting-trigger s-icon" href="#"></a>
							</div>
							<div class="s-care s-care-noweather">
								<div class="s-date">
									<em>21</em>
									<span>星期一</span>
									<span>2015.12</span>
								</div>
							</div>
						</div>
						<!--新品 -->
						<div class="new-goods">
							<div class="s-bar">
								<i class="s-icon"></i>今日新品
								<a class="i-load-more-item-shadow">15款新品</a>
							</div>
							<div class="new-goods-info">
								<a class="shop-info" href="#" target="_blank">
									<div class="face-img-panel">
										<img src="<%=basePath%>images/imgsearch1.jpg" alt="">
									</div>
									<span class="new-goods-num ">4</span>
									<span class="shop-title">剥壳松子</span>
								</a>
								<a class="follow " target="_blank">关注</a>
							</div>
						</div>

						<!--热卖推荐 -->
						<div class="new-goods">
							<div class="s-bar">
								<i class="s-icon"></i>热卖推荐
							</div>
							<div class="new-goods-info">
								<a class="shop-info" href="#" target="_blank">
									<div >
										<img src="<%=basePath%>images/imgsearch1.jpg" alt="">
									</div>
                                    <span class="one-hot-goods">￥9.20</span>
								</a>
							</div>
						</div>

					</div>
				</div>
				<!--底部-->
				<div class="footer">
					<div class="footer-hd">
						<p>
							<a href="#">恒望科技</a>
							<b>|</b>
							<a href="#">商城首页</a>
							<b>|</b>
							<a href="#">支付宝</a>
							<b>|</b>
							<a href="#">物流</a>
						</p>
					</div>
					<div class="footer-bd">
						<p>
							<a href="#">关于恒望</a>
							<a href="#">合作伙伴</a>
							<a href="#">联系我们</a>
							<a href="#">网站地图</a>
							<em>© 2015-2025 Hengwang.com 版权所有</em>
						</p>
					</div>
				</div>

			</div>

			<aside class="menu">
				<ul>
					<li class="person active">
						<a href="index.jsp">管理中心</a>
					</li>
					<li class="person">
						<a href="#">店铺资料</a>
						<ul>
							<li> <a href="information.jsp">店铺信息</a></li>
							<li> <a href="safety.jsp">安全设置</a></li>
						</ul>
					</li>
					<li class="person">
						<a href="#">我的交易</a>
						<ul>
							<li><a href="<%=basePath%>personal/ooder.jsp">订单管理</a></li>
							<li> <a href="change.jsp">退款售后</a></li>
						</ul>
					</li>
					<li class="person">
						<a href="#">我的资产</a>
						<ul>
							<li> <a href="coupon.jsp">优惠券 </a></li>
							<li> <a href="bill.jsp">账单明细</a></li>
						</ul>
					</li>

					<li class="person">
						<a href="#">我的小窝</a>
						<ul>
							<li> <a href="collection.jsp">上新 & 下架</a></li>
						</ul>
					</li>

				</ul>

			</aside>
		</div>
		<!--引导 -->
		<div class="navCir">
			<li><a href="<%=basePath%>home/home.jsp"><i class="am-icon-home "></i>首页</a></li>
			<li><a href="<%=basePath%>home/sort.jsp"><i class="am-icon-list"></i>分类</a></li>
			<li><a href="<%=basePath%>home/shopcart.jsp"><i class="am-icon-shopping-basket"></i>购物车</a></li>	
			<li class="active"><a href="index.jsp"><i class="am-icon-user"></i>我的</a></li>					
		</div>
	</body>

</html>